package com.iwhalecloud.bss.kite.cucc.service.order;

import com.iwhalecloud.bss.kite.cucc.client.api.order.IDictionaryService;
import com.iwhalecloud.bss.kite.cucc.client.dto.order.DictionaryDTO;
import com.iwhalecloud.bss.kite.cucc.dataservice.cache.DictionaryCache;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DictionaryService implements IDictionaryService {

    @Override
    public List<DictionaryDTO> listDictionary(String codeType) {
        List<DictionaryDTO> list = DictionaryCache.get(codeType);
        return list;
    }

}
